package com.zyf.system.annotation;

/**
 * @author 张云帆
 * 2025/3/25 15:41
 */
import com.zyf.system.until.RoleValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Constraint(validatedBy = RoleValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface RoleType {
    String message() default "用户类型错误";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
